package com.vchello.dao.user;

import java.util.List;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.vchello.bean.user.Invitation;

/**
 * 
 * @author power
 *
 */
public interface InvitationDao extends BaseMapper<Invitation> {

	boolean saveInvitation(Invitation entity);
	
	Invitation findInvitationByReceiveId(int receiveId);
	
	Invitation findInvitation(int inviteId, int receiveId);
	
	void deleteInvitation(Invitation entity);
	
	List<Invitation> getInvitationByInviteId(int inviteId, String keyWord);
	
	Invitation findInvitationByCode(String code);
	
	boolean updateInvitation(Invitation entity);
	
	List<Object[]> findDealman(int organizeId);
}
